home *** CD-ROM | disk | FTP | other *** search
- Path: newsstand.tc.umn.edu!usenet
- From: breid001@maroon.tc.umn.edu (Don Breidenbach)
- Newsgroups: comp.lang.c++
- Subject: Re: Input / output files
- Date: Sat, 23 Mar 1996 08:39:48 GMT
- Organization: University of Minnesota
- Message-ID: <4j06bp$c7c@epx.cis.umn.edu>
- References: <4iubnc$ct7@wagner.spc.videotron.ca>
- NNTP-Posting-Host: dialup-12-a-8.gw.umn.edu
- X-Newsreader: Forte Free Agent 1.0.82
-
- alixand@stjeannet.ca (Fignan) wrote:
-
-
- >Hi , I have 2 simple and easy question
-
- >1- How can we create an output files?
-
- > 1.1. How can we write in it?
-
- >2. How can we use an existing file?
-
- >3. What is the format os such a file?
-
- >4. Is it possible to save a class data on such a file?
-
- >Thanks a lot
- >Sebas
-
- Hi,
- There are several ways of reading and writing to disk files in C++.
- Although you don't specify a compiler, some (like Borland) provide a
- class (in Borland's case it is the TFILE class) that encapsulates all
- the normal io functions you would expect.
- There are other more generic approaches to file io - either using FILE
- pointers or stream files. I would suggest that you pick up a basic
- book on C++ - it will cover the fundamentals of file io for you.
- Hope this helps.
-
- Don
-
-
-
-